package com.leyou.order.vo;

import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlProperty;
import com.fasterxml.jackson.dataformat.xml.annotation.JacksonXmlRootElement;
import lombok.Data;

/**
 * @author 虎哥
 */
@Data
@JacksonXmlRootElement(localName = "xml")
public class WxNotifyResult {

    @JacksonXmlProperty(localName = "return_code")
    private String returnCode;
    @JacksonXmlProperty(localName = "return_msg")
    private String returnMessage;

    public static WxNotifyResult ok(){
        WxNotifyResult result = new WxNotifyResult();
        result.setReturnCode("SUCCESS");
        result.setReturnMessage("OK");
        return result;
    }
}
